<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<!-- Set render engine for 360 browser -->
	<meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->

	<link href="/public/simpleboot/themes/<?php echo C('SP_ADMIN_STYLE');?>/theme.min.css" rel="stylesheet">
    <link href="/public/simpleboot/css/simplebootadmin.css" rel="stylesheet">
    <link href="/public/js/artDialog/skins/default.css" rel="stylesheet" />
    <link href="/public/simpleboot/font-awesome/4.4.0/css/font-awesome.min.css"  rel="stylesheet" type="text/css">
    <style>
		.length_3{width: 180px;}
		form .input-order{margin-bottom: 0px;padding:3px;width:40px;}
		.table-actions{margin-top: 5px; margin-bottom: 5px;padding:0px;}
		.table-list{margin-bottom: 0px;}
	</style>
	<!--[if IE 7]>
	<link rel="stylesheet" href="/public/simpleboot/font-awesome/4.4.0/css/font-awesome-ie7.min.css">
	<![endif]-->
<script type="text/javascript">
//全局变量
var GV = {
    DIMAUB: "/",
    JS_ROOT: "public/js/",
    TOKEN: ""
};
document.domain = "xinhuiwen.com";
</script>
<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="/public/js/jquery.js"></script>
    <script src="/public/js/wind.js"></script>
    <script src="/public/js/publish.js"></script>

    <script src="/public/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<?php if(APP_DEBUG): ?><style>
		#think_page_trace_open{
			z-index:9999;
		}
	</style><?php endif; ?>
<link href="/public/simpleboot/themes/live/live_panel.css" rel="stylesheet">
<!--编辑器基本配置-->
<script type="text/javascript" src="/public/js/ueditor/ueditor.config.js"></script>
<!--编辑器完整代码-->
<script type="text/javascript" src="/public/js/ueditor/ueditor.all.min.js"></script>
	<link rel="stylesheet" href="/public/css/wangeditor/wangEditor.min.css">

	<script src="/public/js/wangeditor/wangEditor.min.js"></script>
	<!--<script src="/public/js/socket.io.js"></script>  -->
	
	<script src="/public/js/jquery.js"></script>
	<script src="/public/simpleboot/themes/live/live_panel.js?ver=1.0"></script>
	<script src="/public/simpleboot/themes/live/live_panel_chatroom.js"></script>
	
	<script src="http://cdn.ronghub.com/RongIMLib-2.2.4.min.js"></script>
    <script src="http://cdn.ronghub.com/RongEmoji-2.2.4.min.js"></script>
	<!--  
		<script src="/public/js/common.js"></script>
		<script src="/public/js/layer/layer.js"></script>	
	-->

	<script src="/public/simpleboot/themes/live/jquery.sha1.js"></script>
	<script src="/public/js/layer/layer.js"></script>
	<script src="/public/js/upload_file/jquery-1.10.2.min.js"></script>
    <script src="/public/js/upload_file/jquery.ui.widget.min.js"></script>
    <script src="/public/js/upload_file/jquery.fileupload.js"></script>
	<script>
			function initial_loading_js(version = null, relative_path = null){
				var relative_path_data = relative_path.split('/');
				var js_name = relative_path_data.pop();
				var scr_path = relative_path_data.join('/')+'/'+version+'/'+js_name+"?timestamp=<?php echo C('TIMESTAMP');?>";
				return scr_path;
			}
			function initial_loading_css(version = null, relative_path = null){
				var relative_path_data = relative_path.split('/');
				var css_name = relative_path_data.pop()
				var scr_path = relative_path_data.join('/')+'/'+version+'/'+css_name+"?timestamp=<?php echo C('TIMESTAMP');?>";
				return scr_path;
			}
				//alert(initial_loading_js('1.0','/public/simpleboot/themes/live/live_panel.js'));
				//var jsSrcArr = [
						//{version: '1.0', src: '/public/simpleboot/themes/live/live_panel.js'},
						//{version: '2.0', src: '/public/simpleboot/themes/live/live_panel.js'},
						//{version: '3.0', src: '/public/simpleboot/themes/live/live_panel.js'}
				//]
				//for (var i = 0;i < jsSrcArr.length; i++) {
					//var jssrc = initial_loading_js(jsSrcArr[i].version,jsSrcArr[i].src);
					//var srcElement = document.createElement("script");
					//srcElement.src = jssrc;
					//document.getElementsByTagName('head')[0].appendChild(srcElement)
				//}
				//var cssSrcArr = [
						//{version: '1.0', src: '/public/simpleboot/themes/live/live_panel.css'},
						//{version: '2.0', src: '/public/simpleboot/themes/live/live_panel.css'},
						//{version: '3.0', src: '/public/simpleboot/themes/live/live_panel.css'}
				//]
				//for (var i = 0;i <cssSrcArr.length; i++) {
					//var csssrc = initial_loading_js(cssSrcArr[i].version,cssSrcArr[i].src);
					//var srcElement = document.createElement("link");
					//srcElement.rel="stylesheet";
					//srcElement.href = csssrc;
					//document.getElementsByTagName('head')[0].appendChild(srcElement)
				//}
			
			
			
			
			function abcd(data){
				for(i = 0; i< data['chosed_img_ids'].length; i++){
					setImages(data['chosed_img_names'][i],data['chosed_img_urls'][i],data['chosed_img_ids'][i]);
				}
				for(i = 0; i< data['chosed_video_ids'].length; i++){
					setVideos(
							data['chosed_video_names'][i], 
							data['chosed_video_urls'][i], 
							data['chosed_video_ids'][i], 
							data['chosed_video_thumbnail_urls'][i],
							data['chosed_video_file_ids'][i],
							data['chosed_video_durations'][i],
							data['chosed_video_heights'][i],
							data['chosed_video_widths'][i],
							data['chosed_video_sizes'][i]
					);
				}
			}
			document.domain = "<?php echo C('domain');?>";
			//function chose_video(){
				//var chosed_video_ids = $("#chosed_video_ids").val();
				  //layer.open({
				    //type: 2,
				    //skin: 'layui-layer-lan',
				    //title: '上传视频',
				    //fix: false,
				    //shadeClose: true,
				    //maxmin: true,
				    //area: ['1000px', '500px'],
				    //content: "<?php echo U('Admin/LiveGraphic/chose_video',array('live_id'=>$live_id))?>"+"&chosed_video_ids="+chosed_video_ids,
				    //end: function(){
				    //}
				  //});
			//}
			
			function chose_resource(){
				var chosed_img_ids = $("#chosed_img_ids").val();
				var chosed_video_ids = $("#chosed_video_ids").val()
				var chosed_resource_ids = chosed_img_ids+chosed_video_ids;
				  layer.open({
				    type: 2,
				    //skin: 'layui-layer-lan',
				    title: '资源池',
				    fix: false,
				    shadeClose: true,
				    maxmin: true,
				    area: ['1000px', '500px'],
				    content: "<?php echo U('Admin/Resources/resource_library',array('live_id'=>$live_id))?>"+"&chosed_resource_ids="+chosed_resource_ids+"&show_type=2",
				    end: function(){
				    }
				  });
			}
			
			
			
		//	function setVideo(video_name, video_url, video_id, thumbnail_url){
				//var chosed_video_ids = $("#chosed_video_ids").val();
				//var chosed_video_names = $("#chosed_video_names").val();
				//var chosed_video_urls = $("#chosed_video_urls").val();
				//var chosed_video_thumbnail_urls = $("#chosed_video_thumbnail_urls").val();
				
				//old_chosed_video_ids_arr = chosed_video_ids.split(',');  //原始数组
				//old_chosed_video_names_arr = chosed_video_names.split(',');  //原始数组
				//old_chosed_video_urls_arr = chosed_video_urls.split('~');  //原始数组
				//old_chosed_video_thumbnail_urls_arr = chosed_video_thumbnail_urls.split('~');  //原始数组
				
				//if(old_chosed_video_ids_arr.indexOf(video_id) != '-1'){
					//$.each(old_chosed_video_ids_arr,function(index,item){  
			            // index是索引值（即下标）   item是每次遍历得到的值；
			           // if(item==video_id){
			            //	old_chosed_video_ids_arr.splice(index,1);
			            	//old_chosed_video_names_arr.splice(index,1);
			            	//old_chosed_video_urls_arr.splice(index,1);
			            	//old_chosed_video_thumbnail_urls_arr.splice(index,1);
			        	//}
			     	//});
					//chosed_video_ids = old_chosed_video_ids_arr.join(",");
					//chosed_video_names = old_chosed_video_names_arr.join(",");
					//chosed_video_urls = old_chosed_video_urls_arr.join("~");
					//chosed_video_thumbnail_urls = old_chosed_video_thumbnail_urls_arr.join("~");
				//}else{
					//chosed_video_ids+=video_id+',';
					//chosed_video_names+=video_name+',';
					//chosed_video_urls+=video_url+'~';
					//chosed_video_thumbnail_urls+=thumbnail_url+'~';
				//}
				
				//chosed_video_ids_arr = chosed_video_ids.split(',');
				//chosed_video_ids_arr.pop();
				//chosed_video_names_arr = chosed_video_names.split(',');
				//chosed_video_names_arr.pop();
				//chosed_video_urls_arr = chosed_video_urls.split('~');
				//chosed_video_urls_arr.pop();
				//chosed_video_thumbnail_urls_arr = chosed_video_thumbnail_urls.split('~');
				//chosed_video_thumbnail_urls_arr.pop();
				
				//var show_html = '';
				//for (var i=1;i<=chosed_video_ids_arr.length;i++)
				//{
					//show_html +="<span>"+i+".视频名称:"+chosed_video_names_arr[parseInt(i) - 1]+"</span></br>";
				//}
				//$("#chose_video_show").html(show_html);
				//$("#chosed_video_ids").val(chosed_video_ids);
				//$("#chosed_video_names").val(chosed_video_names);
				//$("#chosed_video_urls").val(chosed_video_urls);
				//$("#chosed_video_thumbnail_urls").val(chosed_video_thumbnail_urls);
			//}
			
			function setVideos(video_name, video_url, resource_id, thumbnail_url, file_id, duration, height, width, size, type="add"){
				var chosed_video_ids = $("#chosed_video_ids").val();
				var chosed_video_names = $("#chosed_video_names").val();
				var chosed_video_urls = $("#chosed_video_urls").val();
				var chosed_video_thumbnail_urls = $("#chosed_video_thumbnail_urls").val();
				var chosed_video_file_ids = $("#chosed_video_file_ids").val();
				var chosed_video_durations = $("#chosed_video_durations").val();
				var chosed_video_heights = $("#chosed_video_heights").val();
				var chosed_video_widths = $("#chosed_video_widths").val();
				var chosed_video_sizes = $("#chosed_video_sizes").val();
		
				old_chosed_video_ids_arr = chosed_video_ids.split(',');  //原始数组
				old_chosed_video_names_arr = chosed_video_names.split(',');  //原始数组
				old_chosed_video_urls_arr = chosed_video_urls.split('~');  //原始数组
				old_chosed_video_thumbnail_urls_arr = chosed_video_thumbnail_urls.split('~');  //原始数组
				old_chosed_video_file_ids_arr = chosed_video_file_ids.split(',');  //原始数组
				old_chosed_video_durations_arr = chosed_video_durations.split(',');  //原始数组
				old_chosed_video_heights_arr = chosed_video_heights.split(',');  //原始数组
				old_chosed_video_widths_arr = chosed_video_widths.split(',');  //原始数组
				old_chosed_video_sizes_arr = chosed_video_sizes.split(',');  //原始数组
				if(old_chosed_video_ids_arr.indexOf(resource_id) != '-1'){
					if(type == 'del'){
						$.each(old_chosed_video_ids_arr,function(index,item){  
				            // index是索引值（即下标）   item是每次遍历得到的值；
				            if(item==resource_id){
				            	old_chosed_video_ids_arr.splice(index,1);
				            	old_chosed_video_names_arr.splice(index,1);
				            	old_chosed_video_urls_arr.splice(index,1);
				            	old_chosed_video_thumbnail_urls_arr.splice(index,1);
				            	old_chosed_video_file_ids_arr.splice(index,1);
				            	old_chosed_video_durations_arr.splice(index,1);
				            	old_chosed_video_heights_arr.splice(index,1);
				            	old_chosed_video_widths_arr.splice(index,1);
				            	old_chosed_video_sizes_arr.splice(index,1);
				        	}
				     	});
					}
					
					chosed_video_ids = old_chosed_video_ids_arr.join(",");
					chosed_video_names = old_chosed_video_names_arr.join(",");
					chosed_video_urls = old_chosed_video_urls_arr.join("~");
					chosed_video_thumbnail_urls = old_chosed_video_thumbnail_urls_arr.join("~");
					chosed_video_file_ids = old_chosed_video_file_ids_arr.join(",");
					chosed_video_durations = old_chosed_video_durations_arr.join(",");
					chosed_video_heights = old_chosed_video_heights_arr.join(",");
					chosed_video_widths = old_chosed_video_widths_arr.join(",");
					chosed_video_sizes = old_chosed_video_sizes_arr.join(",");
				}else{
					chosed_video_ids+=resource_id+',';
					chosed_video_names+=video_name+',';
					chosed_video_urls+=video_url+'~';
					chosed_video_thumbnail_urls+=thumbnail_url+'~';
					chosed_video_file_ids+=file_id+',';
					chosed_video_durations+=duration+',';
					chosed_video_heights+=height+',';
					chosed_video_widths+=width+',';
					chosed_video_sizes+=size+',';
				}
				chosed_video_ids_arr = chosed_video_ids.split(',');
				chosed_video_ids_arr.pop();
				chosed_video_names_arr = chosed_video_names.split(',');
				chosed_video_names_arr.pop();
				chosed_video_urls_arr = chosed_video_urls.split('~');
				chosed_video_urls_arr.pop();
				chosed_video_thumbnail_urls_arr = chosed_video_thumbnail_urls.split('~');
				chosed_video_thumbnail_urls_arr.pop();
				chosed_video_file_ids_arr = chosed_video_file_ids.split(',');
				chosed_video_file_ids_arr.pop();
				chosed_video_durations_arr = chosed_video_durations.split(',');
				chosed_video_durations_arr.pop();
				chosed_video_heights_arr = chosed_video_heights.split(',');
				chosed_video_heights_arr.pop();
				chosed_video_widths_arr = chosed_video_widths.split(',');
				chosed_video_widths_arr.pop();
				chosed_video_sizes_arr = chosed_video_sizes.split(',');
				chosed_video_sizes_arr.pop();
				
				var show_html = '';
				for (var i=1;i<=chosed_video_ids_arr.length;i++)
				{
					show_html +='<div style="margin-bottom:15px;margin-top:15px"><span style="display:inline-block"><video controls  src="' + chosed_video_urls_arr[parseInt(i) - 1] + '" poster="'+chosed_video_thumbnail_urls_arr[parseInt(i) - 1]+'"  style="width:500px; height:300px;" /></br>'+i+'.视频名称:'+chosed_video_names_arr[parseInt(i) - 1]+'</span><a href="javascript:;" onclick="setVideos('+"'"+chosed_video_names_arr[parseInt(i) - 1]+"'"+','+"'"+chosed_video_urls_arr[parseInt(i) - 1]+"'"+','+"'"+chosed_video_ids_arr[parseInt(i) - 1]+"'"+','+"'"+chosed_video_thumbnail_urls_arr[parseInt(i) - 1]+"'"+','+"'"+chosed_video_file_ids_arr[parseInt(i) - 1]+"'"+','+"'"+chosed_video_durations_arr[parseInt(i) - 1]+"'"+','+"'"+chosed_video_heights_arr[parseInt(i) - 1]+"'"+','+"'"+chosed_video_widths_arr[parseInt(i) - 1]+"'"+','+"'"+chosed_video_sizes_arr[parseInt(i) - 1]+"'"+','+"'del'"+')" class="del_btn">删除</a></br></div>';
				}
				$("#chose_video_show").html(show_html);
				$("#chosed_video_ids").val(chosed_video_ids);
				$("#chosed_video_names").val(chosed_video_names);
				$("#chosed_video_urls").val(chosed_video_urls);
				$("#chosed_video_thumbnail_urls").val(chosed_video_thumbnail_urls);
				$("#chosed_video_file_ids").val(chosed_video_file_ids);
				$("#chosed_video_durations").val(chosed_video_durations);
				$("#chosed_video_heights").val(chosed_video_heights);
				$("#chosed_video_widths").val(chosed_video_widths);
				$("#chosed_video_sizes").val(chosed_video_sizes);
			}
			
			function setImages(img_name, img_url, resource_id, type="add"){
				var chosed_img_ids = $("#chosed_img_ids").val();
				var chosed_img_names = $("#chosed_img_names").val();
				var chosed_img_urls = $("#chosed_img_urls").val();
		
				old_chosed_img_ids_arr = chosed_img_ids.split(',');  //原始数组
				old_chosed_img_names_arr = chosed_img_names.split(',');  //原始数组
				old_chosed_img_urls_arr = chosed_img_urls.split('~');  //原始数组
				
				if(old_chosed_img_ids_arr.indexOf(resource_id) != '-1'){
					if(type == 'del'){
						$.each(old_chosed_img_ids_arr,function(index,item){  
				            // index是索引值（即下标）   item是每次遍历得到的值；
				            if(item==resource_id){
				            	old_chosed_img_ids_arr.splice(index,1);
				            	old_chosed_img_names_arr.splice(index,1);
				            	old_chosed_img_urls_arr.splice(index,1);
				        	}
				     	});
					}
					
					chosed_img_ids = old_chosed_img_ids_arr.join(",");
					chosed_img_names = old_chosed_img_names_arr.join(",");
					chosed_img_urls = old_chosed_img_urls_arr.join("~");
				}else{
					chosed_img_ids+=resource_id+',';
					chosed_img_names+=img_name+',';
					chosed_img_urls+=img_url+'~';
				}
		
				chosed_img_ids_arr = chosed_img_ids.split(',');
				chosed_img_ids_arr.pop();
				chosed_img_names_arr = chosed_img_names.split(',');
				chosed_img_names_arr.pop();
				chosed_img_urls_arr = chosed_img_urls.split('~');
				chosed_img_urls_arr.pop();
				
				var show_img_html = '';
				for (var i=0;i<chosed_img_ids_arr.length;i++)
				{
					show_img_html +='<li><img src="'+chosed_img_urls_arr[i]+'" alt="" style="width:400px;height:240px" /><span><a href="javascript:;" onclick="setImages('+"'"+chosed_img_names_arr[i]+"'"+','+"'"+chosed_img_urls_arr[i]+"'"+','+"'"+chosed_img_ids_arr[i]+"'"+','+"'del'"+')" class="del_btn">删除</a></span></li>';
				}
				$("#upload_img_show").html(show_img_html);
				$("#chosed_img_ids").val(chosed_img_ids);
				$("#chosed_img_names").val(chosed_img_names);
				$("#chosed_img_urls").val(chosed_img_urls);
			}
			
			
			
			$(function () {
			    $("input[type=file]").fileupload({
			        dataType: "json",
			        limitMultiFileUploadSize: 52428800,
			        change: function (e, data) {
			            console.log(data);
			        },
			        done: function (e, data) {
			        	var img_url = data['result'];
			        	var upload_img_urls = $("#upload_img_urls").val();
			        	upload_img_urls+=img_url+'~';
		
			    		upload_img_urls_arr = upload_img_urls.split('~');
			    		upload_img_urls_arr.pop();
			    		var show_img_html = '';
			    		for (var i=0;i<upload_img_urls_arr.length;i++)
			    		{
			    			show_img_html +='<li><img src="'+upload_img_urls_arr[i]+'" alt="" /><span><a href="javascript:;" class="del_btn">删除</a></span></li>';
			    		}
			    		$("#upload_img_show").html(show_img_html);
			        	$("#upload_img_urls").val(upload_img_urls);
			            console.log(data);
			        }
			    })
			    $("body").on("click", ".del_btn", function () {
			    	var img_url = $(this).parent().siblings("img").attr("src");
			    	del_img(img_url);
			    })
			    
			})
			
			function del_img(img_url){
				var upload_img_urls = $("#upload_img_urls").val();
		    	old_upload_img_urls_arr = upload_img_urls.split('~');  //原始数组
				if(old_upload_img_urls_arr.indexOf(img_url) != '-1'){
					$.each(old_upload_img_urls_arr,function(index,item){  
			            // index是索引值（即下标）   item是每次遍历得到的值；
			            if(item==img_url){
			            	old_upload_img_urls_arr.splice(index,1);
			        	}
			     	});
					upload_img_urls = old_upload_img_urls_arr.join("~");
				}
		    	
				upload_img_urls_arr = upload_img_urls.split('~');
				upload_img_urls_arr.pop();
				var show_img_html = '';
				for (var i=0;i<upload_img_urls_arr.length;i++)
				{
					show_img_html +='<li><img src="'+upload_img_urls_arr[i]+'" alt="" /><span><a href="javascript:;" class="del_btn">删除</a></span></li>';
				}
				$("#upload_img_show").html(show_img_html);
		    	$("#upload_img_urls").val(upload_img_urls);
		    	
			}
			
			function closeSourceBox(){
				var index = layer.getFrameIndex(window.name); //获取窗口索引
		        layer.close(index);
			}
			
			//接受iframe传过来的上榜用户信息
			function getOnlistInfo(user_id, username, content){
				console.log(user_id)
				console.log(username)
				console.log(content)
				$("#opt_type").val('3');
				$("#onlist_user_id").val(user_id);
				$("#onlist_nickname").val(username);
				$("#user_speak_content_show").html( "<span>【回复】</span> "+RongIMLib.RongIMEmoji.symbolToHTML(content) + "<span class='no' onclick='canel_onlist()'>取消</span>");
				$("#user_speak_content_show_hidden").val(content);
			}
			
			function canel_onlist(){
				$("#opt_type").attr('value',1);
				$("#msg_id").attr('value',0);
				$("#onlist_user_id").attr('value','');
				$("#onlist_nickname").attr('value','');
				$("#user_speak_time").attr('value',0);
				$("#user_speak_content").css({"display":"none"});
				$("#user_speak_content").html('');
				$("#user_speak_content_show").html("");
				$("#user_speak_content_show_hidden").val("");
			}
	</script>
	
	<script src="/public/simpleboot/themes/resources/resource.js?ver=1.0"></script>
</head>

<body>

	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<?php if($return_val != '0'){?>
			<?php if($add_from == 0): ?><li><a href="{:U('Admin/Live/index')}">直播列表</a></li>
				<li><a href="<?php echo U('Admin/Live/add');?>">添加直播</a></li><?php endif; ?>
			<li class="active"><a href="<?php echo U('Admin/LiveGraphic/live_panel', array('live_id'=>$live_id,'add_from'=>$add_from));?>">直播员管理面板</a></li>
			<?php }else{?>
				<li><a href="/index.php?g=Admin&m=LiveFast&a=index">快直播列表</a></li>
				<li><a href="/index.php?g=Admin&m=LiveFast&a=add">添加快直播</a></li>
			<li class="active"><a href="#">直播员管理面板</a></li>
			<?php } ?>
		</ul> 
	</div>
	<style>
		#outside:after {
			display: block;
			content: "\200B";
			height: 0;
			clear: both;
		}
	</style>
	<div id="outside">
		<div id="live_top">
		  <ul>
		  	<li>ID: <?php echo ($live_id); ?></li>
		  	<li>直播标题: <?php echo ($data['name']); ?></li>
		  	<li>开始时间: <?php echo ($data['start_time']); ?></li>
		  </ul>
		</div>
	 	<div id="live_main">
	 	
	 		 	    
	 		<div id="live_list">
	 			<iframe class="live-iframe" src="<?php echo C('graphic_host');?>/iframe/live?id=<?php echo $live_id;?>&rcloud_token=<?php echo $other_rcloud_token2;?>&type=iframelive" frameborder="0" style="height:100%"></iframe>  
				<style>
				#editor {
					height: 200px;
				}
				#live_list {
					overflow:hidden;
				}
				.live-iframe {
					width:100%;
					height:100%;
					box-sizing: border-box;
					border-right: 1px solid #cccccc;
				}
				#user_speak_content_show  {
						line-height:40px;
						width:100%;
				}
				#user_speak_content_show  span {
						color:red;
						font-size:14px;	
				}
				#user_speak_content_show  .no {
						margin-left:15px;
				}
				.mt {
					margin-top:15px;
					margin-left:15px;
				}
				
				</style>
	 		</div>
	 			 		
	 		<div id="send_box">
	 			<div id="chat_box" class="clearfix">
	 					<input type="hidden" id="live_id" value="<?php echo ($live_id); ?>"  />
	 					<!-- opt_type:1(浏览状态，新增状态,要上传非上榜的图文）；2（编辑状态:含正常数据的编辑，及上榜回复信息的编辑）；3：（上榜状态:要添加新的上榜图文） -->
	 					<input type="hidden" id="opt_type" value="1" />
	 					<input type="hidden" id="msg_id" value="0" />
	 					<input type="hidden" id="onlist_user_id" value="" />
	 					<input type="hidden" id="onlist_nickname" value="" />
	 					<input type="hidden" id="user_speak_time" value="0" />
	 					<input type="hidden" id="user_speak_content_show_hidden" value="">
	 					<input type="hidden" id="admin_id" value="<?php echo $_SESSION['ADMIN_ID'];?>">
	 					
						<!-- <script type="text/plain" id="pic_txt_content" name="newsContent"  style="width:698px;height:230px;" ></script> -->
								<div id="editor" style="width:100%;height:138px;"></div>
				                <span id="emoji_span" style="cursor:pointer;"></span>
				                <div class="r_box" id="all_emoji_div"></div>
						<!--  <textarea style="width:702px;height:230px;" id="content"></textarea> -->
						<div class="span7" id="user_speak_content_show"></div>

						
			            <div class="mt">
			            
			            <!--  <a class="btn btn-primary">上传图片</a>
			                <a class="btn btn-primary"  onclick="getOnlistInfo('2016147485356358','张三','这里是内容')">上榜</a>
			                <input type="hidden" id="upload_img_urls" value="">
			                <input type="file" value="submit" class="btn-file" data-url="<?php echo U('Admin/LiveGraphic/upload_img');?>" name="imageFile"/>
			                 <a class="btn btn-primary"  onclick="chose_video()">选择视频</a>-->
			                
			                <!-- <a class="btn btn-primary"  onclick="chose_resource()">选择资源</a> -->
			                <span>是否添加水印</span>
			                <input type="radio" name="set_water_input"  value="0">否
			                <input type="radio" name="set_water_input"  value="1" checked="checked">是
			                <p></p>
			                <!-- <a class="btn btn-primary"  onclick="open_resource_news_href('get_news_resource')">选择新闻</a> -->
			                <!-- <a class="btn btn-primary"  onclick="open_resource_live_href('get_live_resource')">选择直播</a> -->
			                 <a class="btn btn-primary"  onclick="open_resource_href(1,'abcd',$('input:radio:checked').val(),$('#admin_id').val())">选择图片</a>
			                 <a class="btn btn-primary"  onclick="open_resource_href(2,'abcd')">选择视频</a>
			                 <input type="hidden" id="chosed_video_ids" value="">
			                 <input type="hidden" id="chosed_video_names" value="">
			                 <input type="hidden" id="chosed_video_urls" value="">
			                 <input type="hidden" id="chosed_video_thumbnail_urls" value="">
			                 <input type="hidden" id="chosed_img_ids" value="">
			                 <input type="hidden" id="chosed_img_names" value="">
			                 <input type="hidden" id="chosed_img_urls" value="">
			                 <input type="hidden" id="chosed_video_file_ids" value="">
			                 <input type="hidden" id="chosed_video_durations" value="">
							 <input type="hidden" id="chosed_video_heights" value="">
							 <input type="hidden" id="chosed_video_widths" value="">
							 <input type="hidden" id="chosed_video_sizes" value="">
			                 <style>
			                 	.span7 {
			                 		position: relative;
			                 	}
			                 	.btn-file {
			                 		position: absolute;
			                 		top: 0;
			                 		left: 0;
			                 		width: 56px!important;
			                 		height: 20px!important;
			                 		padding: 7px 20px;
			                 		z-index: 3;
			                 		opacity: 0;
			                 		cursor: pointer;
			                 	}
			                 </style>
			            </div>
			            <div class="span7" id="chose_video_show"></div>
			            <div id="btn_box">
		 					<div id="send_button" class="msg_btn" title="上传数据到服务器">发送</div>
		 					<!-- <div id="cancel_button" class="msg_btn" title="取消编辑或上榜">取消</div> -->
		 				</div>

					<!-- 防止在编辑器中按ctrl+回车自动提交 
					<form id="live_form" method="post" action="./index.php?g=Admin&m=Live&a=live_update&live_id=<?php echo ($live_id); ?>"  onkeydown="if(event.keyCode==13){alert('button');return false;}" onSubmit="alert('form');return false;">
					</form>
					 -->
	 			</div>	 	 			
	 			<div id="prompt_msg">
	 				<div id="user_speak_content_box"> 
	 					<div id="to_top_prompt_info">
	 						<ul class="clearfix" id="upload_img_show">
	 						</ul>
	 					</div>
	 				</div>
	 			</div>						
	 		</div>
	 	</div>	
	 	<style>
	 		.clearfix:after {
	 			height: 0;
	 			content: "\200B";
	 			clear: both;
	 			display: block;
	 		}
	 		.clearfix {
	 			*zoom: 1;
	 		}
		 	ul, li {
		 		list-style: none;
		 	}
		 	#to_top_prompt_info li  {
	 			float: left;
	 			margin-right: 10px;
	 			margin-bottom: 10px;
	 		}
	 		#to_top_prompt_info img {
	 			display: block;
	 			width: 100px;
	 			height: 60px;
	 		}
	 		#to_top_prompt_info span {
	 			width: 100%;
	 			display: block;
	 			text-align: center;
	 			padding: 4px 0;
	 		}
	 	</style>
	 	<div id="chat_room">
	 	
	 	    <input type="hidden" value="<?php echo ($admin_id); ?>" id="admin_id"/>
	 	    <input type="hidden" value="<?php echo ($rcloud_token); ?>" id="rcloud_token"/>
	 	    <input type="hidden" value="<?php echo ($ryAppKey); ?>" id="ryAppKey"/>
	 	    <input type="hidden" value="<?php echo ($chatRoomId); ?>" id="chatRoomId"/>
	 	    <input type="hidden" value="<?php echo C('graphic_host');?>" id="graphic_host"/>
	 	    <iframe src="<?php echo C('graphic_host');?>/iframe/chatroom?id=<?php echo $live_id;?>&rcloud_token=<?php echo $other_rcloud_token1;?>&type=iframechatroom" frameborder="0" style=" width:100%;height:100%"></iframe>  
	 	    <!-- 
		 	<div class="r_box">
	            <div class="title">
	                                                  直播备忘
	            </div>
	            <div class="bw_con">
	                <p><?php echo ($remark); ?></p>
	            </div>
	        </div>
	        <div class="r_box">
	            <div class="title">
	                                                       互动聊天
	            </div>
	            <div class="bw_con">
	           	    <div class="btn_box1">
	                	<div class="input_box">
	                		<input type="text" placeholder="系统消息" id="sys_msg_input" class="input1" /><input type="submit" id="send_sys_msg_btn" value="提交" class="btn1" />
	                    </div>
	                </div>
	                <div class="liuyan_list">
	                    <div class="xtxx">系统消息：<span id="sys_msg_span" style="width:100px;text-overflow:ellipsis;word-break:keep-all;white-space:nowrap; overflow:hidden; "></span></div>
	                    <ul id="receive_msg_ul" style="min-height:90px;">
	                        
	                    </ul>
	                </div>
	                
	              	<div class="btn_box2">
	                	<div class="input_box">
	                		<input type="text" placeholder="实时评论互动" id="chat_msg_input" class="input1" style="width:170px;"/>
	                		<span id="emoji_span" style="cursor:pointer;"></span>
	                		<input type="submit" id="send_chat_msg_btn" value="提交" class="btn1" />
	                		给<input type="text" value="zrl_id" id="touser" />发消息
	                		<input type="button" id="tosendmessage" value="发送" />
	                    </div>
	                </div>
	            </div>
       		 </div> -->
       		 <div class="r_box" id="all_emoji_div" style="margin-top:-32px;z-index:999;background:#2c3e50;margin-right:40px;height:200px;overflow-y:scroll;visibility:hidden;"></div>
	 	</div>

 	</div>
</body>
</html>